#pragma once

namespace Artemis_Client {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for Login_Window
	/// </summary>
	public ref class Login_Window : public System::Windows::Forms::Form
	{
	public:
		//int level = 0;
		Login_Window(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Login_Window()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Label^  username_label;
	private: System::Windows::Forms::Label^  password_label;
	private: System::Windows::Forms::TextBox^  username_textbox;
	private: System::Windows::Forms::TextBox^  password_textbox;
	private: System::Windows::Forms::Button^  login_button;
	private: System::Windows::Forms::Button^  cancel_button;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->username_label = (gcnew System::Windows::Forms::Label());
			this->password_label = (gcnew System::Windows::Forms::Label());
			this->username_textbox = (gcnew System::Windows::Forms::TextBox());
			this->password_textbox = (gcnew System::Windows::Forms::TextBox());
			this->login_button = (gcnew System::Windows::Forms::Button());
			this->cancel_button = (gcnew System::Windows::Forms::Button());
			this->SuspendLayout();
			// 
			// username_label
			// 
			this->username_label->AutoSize = true;
			this->username_label->Location = System::Drawing::Point(25, 23);
			this->username_label->Name = L"username_label";
			this->username_label->Size = System::Drawing::Size(55, 13);
			this->username_label->TabIndex = 0;
			this->username_label->Text = L"Username";
			// 
			// password_label
			// 
			this->password_label->AutoSize = true;
			this->password_label->Location = System::Drawing::Point(25, 49);
			this->password_label->Name = L"password_label";
			this->password_label->Size = System::Drawing::Size(53, 13);
			this->password_label->TabIndex = 1;
			this->password_label->Text = L"Password";
			// 
			// username_textbox
			// 
			this->username_textbox->Location = System::Drawing::Point(94, 20);
			this->username_textbox->Name = L"username_textbox";
			this->username_textbox->Size = System::Drawing::Size(175, 20);
			this->username_textbox->TabIndex = 2;
			// 
			// password_textbox
			// 
			this->password_textbox->Location = System::Drawing::Point(94, 46);
			this->password_textbox->Name = L"password_textbox";
			this->password_textbox->PasswordChar = '$';
			this->password_textbox->Size = System::Drawing::Size(175, 20);
			this->password_textbox->TabIndex = 3;
			// 
			// login_button
			// 
			this->login_button->Location = System::Drawing::Point(113, 88);
			this->login_button->Name = L"login_button";
			this->login_button->Size = System::Drawing::Size(75, 23);
			this->login_button->TabIndex = 4;
			this->login_button->Text = L"Login";
			this->login_button->UseVisualStyleBackColor = true;
			this->login_button->Click += gcnew System::EventHandler(this, &Login_Window::login_button_Click);
			// 
			// cancel_button
			// 
			this->cancel_button->DialogResult = System::Windows::Forms::DialogResult::Cancel;
			this->cancel_button->Location = System::Drawing::Point(194, 88);
			this->cancel_button->Name = L"cancel_button";
			this->cancel_button->Size = System::Drawing::Size(75, 23);
			this->cancel_button->TabIndex = 5;
			this->cancel_button->Text = L"Cancel";
			this->cancel_button->UseVisualStyleBackColor = true;
			this->cancel_button->Click += gcnew System::EventHandler(this, &Login_Window::cancel_button_Click);
			// 
			// Login_Window
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(294, 131);
			this->Controls->Add(this->cancel_button);
			this->Controls->Add(this->login_button);
			this->Controls->Add(this->password_textbox);
			this->Controls->Add(this->username_textbox);
			this->Controls->Add(this->password_label);
			this->Controls->Add(this->username_label);
			this->Name = L"Login_Window";
			this->Text = L"Login";
			this->Load += gcnew System::EventHandler(this, &Login_Window::Login_Window_Load);
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
		
private: System::Void cancel_button_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			Application::Exit();
		 }
private: System::Void login_button_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			this->Close();
		 }
private: System::Void Login_Window_Load(System::Object^  sender, System::EventArgs^  e) {
		 }
};
}

